
//
//  HUDTool.m
//  meiyezaishou
//
//  Created by 上官惠阳 on 2016/10/29.
//  Copyright © 2016年 CJ. All rights reserved.
//

#import "HUDTool.h"

@implementation HUDTool
+ (void)showInView:(UIView *)view withText:(NSString *)text
{
   MBProgressHUD *HUD = [MBProgressHUD showHUDAddedTo:view animated:YES];
    HUD.mode = MBProgressHUDModeText;
    HUD.detailsLabelText = text;
    HUD.detailsLabelFont = [UIFont systemFontOfSize:15];
    [HUD hide:YES afterDelay:.8f];
}
@end
